﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Mathmall.Administration.Models
{
    /// <summary>
    /// 商品属性
    /// </summary>
    public class Attr : Base
    {
        /// <summary>
        /// 属性id
        /// </summary>
        public int AttrID { get; set; }

        /// <summary>
        /// 属性名
        /// </summary>
        public string? AttrName { get; set; }

        /// <summary>
        /// 是否需要检索（false-不需要，true-需要）
        /// </summary>
        public bool? SearchType { get; set; }

        /// <summary>
        /// 属性图标
        /// </summary>
        public string? Icon { get; set; }

        /// <summary>
        /// 可选值列表【用逗号分隔】
        /// </summary>
        public string? ValueSelect { get; set; }

        /// <summary>
        /// 属性类型【0-销售属性，1-基本属性】
        /// </summary>
        public byte? AttrType { get; set; }

        /// <summary>
        /// 启用状态【false-禁用，ture-启用】
        /// </summary>
        public bool? Enable { get; set; }

        /// <summary>
        /// 所属分类
        /// </summary>
        public int CatalogID { get; set; }

        /// <summary>
        /// 快速展示【是否展示在介绍上：false-否，true-是】
        /// </summary>
        public bool? ShowDescription { get; set; }
    }
}